<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$meta_title} [ {$configs.site_name} ]</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css">
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/comment.css">
    <block name="head"></block>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">{$configs.site_name} </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="javascript:;" id="switchNav"><i class="layui-icon">&#xe668;</i></a></li>
            <li class="layui-nav-item quick_nav"><a href="{:U('Index/index')}">首页</a></li>
            <volist name="quick_menus" id="quick_menu">
                <li class="layui-nav-item quick_nav"><a href="{:U($quick_menu['url'])}">{$quick_menu['name']}</a></li>
            </volist>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="{:U('Config/delCache')}">清理缓存</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="<notempty name='_member.head_img'>{$_member.head_img}<else/>__PUBLIC__/Admin/images/default_head.jpg</notempty>" class="layui-nav-img">
                    {$_member.username}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" id="myInfo">个人设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="{:U('Public/logout')}">注销</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" id="index-nav">
                <volist name="_menus" id="menu">
                    <li class="layui-nav-item <eq name='_menu.pid' value='$menu["id"]'>layui-nav-itemed</eq>">
                    <if condition="$menu['url'] or ($menu['target'] eq 1)">
                        <a class="" href="<eq name='menu.type' value='1'>{$menu.url}<else/>{:U($menu['url'])}</eq>" <eq name="menu.target" value="1">target="_blank"</eq> >
                        <i class="layui-icon" style="font-size: 16px; color: #FFFFFF;">{$menu.css}</i> <span class="infonum">{$menu.name}<span></span></span>
                        </a>
                        <else/>
                        <a class="" href="javascript:;">
                            <i class="layui-icon" style="font-size: 16px; color: #FFFFFF;">{$menu.css}</i> <span class="infonum">{$menu.name}<span></span></span>
                        </a>
                    </if>
                    <notempty name="menu.child">
                        <dl class="layui-nav-child">
                            <volist name="menu.child" id="sub_menu">
                                <if condition="$sub_menu['url'] or ($sub_menu['target'] eq 1)">
                                    <dd <eq name="sub_menu.id" value="$_menu['id']">class="layui-this"</eq> ><a href="<eq name='sub_menu.type' value='1'>{$sub_menu.url}<else/>{:U($sub_menu['url'])}</eq>" <eq name="sub_menu.target" value="1">target="_blank"</eq> >{$sub_menu.name}<span></span></a></dd>
                                    <else/>
                                    <dd <eq name="sub_menu.id" value="$_menu['id']">class="layui-this"</eq> ><a href="javascript:;">{$sub_menu.name}<span></span></a></dd>
                                </if>
                            </volist>
                        </dl>
                    </notempty>
                    </li>
                </volist>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <!-- 面包屑 -->
            <block name="content_header"></block>
            <!-- 筛选 -->
            <block name="toolbar"></block>
            <!-- 右侧内容主体 -->
            <block name="content_body"></block>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
    <!-- 手机屏幕遮罩层 -->
    <div class="site-mobile-shade"></div>
</div>
<script src="__PUBLIC__/jquery/jquery-3.2.1.min.js"></script>
<script src="__PUBLIC__/layui/layui.all.js"></script>
<script src="__PUBLIC__/Admin/js/common.js"></script>
<script>
    $("#myInfo").on('click',function () {
        window.location.href="{:U('Config/modadmin')}";
    });
    $("#back").click(function(){
        window.history.back();
    });
    layui.use('layer',function(){
        var layer=layui.layer;
        layer.config({
            offset:'20px'
        });
    });

</script>
<block name="foot_script"></block>
</body>
</html>